home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / dev / cross / GBDK-2.0.lha / GBDK / lib / sprint.c < prev    next >
C/C++ Source or Header  |  1998-10-01  |  148b  |  15 lines

  1. #include <stdio.h>
  2.  
  3. UBYTE sprint(char *s, char *str)
  4. {
  5.   UBYTE n = 0;
  6.  
  7.   while(*str) {
  8.     *(s++) = *(str++);
  9.     n++;
  10.   }
  11.   *s = 0;
  12.  
  13.   return n;
  14. }
  15.